package com.danciyixue.boot.dcyx.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
@Schema(description = "发布学习任务表单")
public class TaskAssignForm {

    @NotNull
    @Schema(description = "学生ID")
    private Long studentId;

    @NotNull
    @Schema(description = "目标日期")
    private LocalDate targetDate;

    @Valid
    @NotEmpty
    @Schema(description = "任务子项列表")
    private List<TaskAssignItemForm> items;
}

